@extends('admin.common.admin')
@section('cnt')
    {{--面包屑导航--}}
    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i>租客管理
        <span class="c-gray en">&gt;</span> 租客列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
           href="javascript:location.replace(location.href);" title="刷新">
            <i class="Hui-iconfont">&#xe68f;</i>
        </a>
    </nav>
    <div class="page-container">
        @include('admin.common.msg')
        <div class="text-c">
            <form action="">日期范围：
                <input type="text" value="{{request()->get('datemin')}}" onfocus="WdatePicker()" name="datemin"
                       class="input-text Wdate" style="width:120px;">
                <input type="text" value="{{request()->get('datemax')}}" onfocus="WdatePicker()" name="datemax"
                       class="input-text Wdate" style="width:120px;">
                <input type="text" value="{{request()->get('truename')}}" class="input-text" style="width:250px"
                       placeholder="租客姓名" id="" name="truename">
                <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜租客
                </button>
            </form>
        </div>
        <table class="table table-border table-bordered table-bg" style="margin-top: 50px">
            <thead>
            <tr class="text-c">
                <th width="40">ID</th>
                <th>真实姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>手机号码</th>
                <th>电子邮箱</th>
                <th>身份证号码</th>
                <th>加入时间</th>
                <th>是否认证</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($data as $item)
                <tr class="text-c">
                    <td>{{$item->id}}</td>
                    <td>{{$item->truename}}</td>
                    <td>{{$item->sex}}</td>
                    <td>{{$item->age}}</td>
                    <td>{{$item->phone}}</td>
                    <td>{{$item->email}}</td>
                    <td>{{$item->card}}</td>
                    <td>{{$item->created_at}}</td>
                    <td class="td-status">
                        @if(!$item->is_auth=='1')
                            <span class="label label-success radius">已认证</span>
                        @else
                            <span class="label label-danger radius">未认证</span>
                        @endif
                    </td>
                    <td class="td-manage">
                       {!! $item->editBtn('admin.renting.fav','查看房源收藏',$item) !!}
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
        {{ $data->appends(request()->except('page'))->links() }}
    </div>
@endsection

